const hostUrl = process.env.API_HOST
const privateHostUrl = process.env.PRIVATE_API
const payUrl = process.env.ZH_FU

export default {
  payment: {
    routeName: payUrl + "trading/order/",
    children: {
      wechatScan: "wechatpay/add/scan",
      aliScan: 'alipay/add/scan',
      orderNo: 'get'
    }
  },
  resource: {
    routeName: hostUrl + 'resource/',
    privateRouteName: privateHostUrl + 'areditor/resource/',
    children: {
      list: 'resource/list',
      detail: 'resource/detail',
      addShopping: 'shopping/add',
      shoppingList: 'shopping/list',
      shoppingDel: 'shopping/del',
      submitOrder: 'shopping/submit/order',
      classifies: 'classify',
      subClassifies: 'classify/all',
      resSearch: 'resource/search',
      privResSearch: 'auth/search',
      resourceList: 'search',
      brand: 'brand',
      usr: 'user/resource/list',
      number: 'user/resource/num',
      custom: 'customize/classify'
    }
  },
  Info: {
    routeName: privateHostUrl + 'areditor/',
    privateRouteName: privateHostUrl + 'areditor/account/resource/',
    children: {
      account: 'account/',
      purchase: 'purchase/detail',
      profit:'profit/detail',
      changeP: 'account/pwd/changeNew',
      edit:'account/info/edit'
    }
  },
  orders: {
    routeName: hostUrl + 'areditor/resource/book/',
    children: {
      book: 'orders',
      detail: 'orders/bookOrder/',
      orderNo: "orders/",
      addShopping: 'shopping/add',
      classifies: 'classify',
      get: 'orders/get',
      add: 'orders/addBookNum',
      bookList: 'orders/bookList',
      cancel:'orders/cancel/'
    }
  },
  shpping: {
    routeName: hostUrl + 'resource/',
    children: {
      count: 'shopping/count',
      list: 'shopping/list',
      submitorder: 'shopping/submit-order',
      details: 'order/',
      controller: 'order/list',
      Deleteorder: 'shopping/order-num?rnd=',
      deleteresources: 'shopping/',
      deleteparameter: '?rnd=',
      cart: 'shopping/carts',
      // basePunch: 'shopping/carts/base',
      custPunch: 'shopping/carts/customize'
    }
  },
  charge: {
    routeName: hostUrl + 'areditor/account/',
    children: {
      detail: 'recharge/detail'
    }
  },
  resourceDetail: {
    routeName: hostUrl + 'areditor/resource/',
    children: {
      detail: 'res/checkNew',
      pay: 'order/pay',
      price: 'book/prices'
    }
  },
  customDetail: {
    routeName: hostUrl + 'areditor/resource/',
    children: {
      detail: 'order/detail',
      book: 'order/',
      cancel:"order/cancel",
      save: 'order/save',
      list: 'order/list'
    }
  },
  customResource: {
    routeName: hostUrl + '/areditor/resource/shopping',
    children: {
      count: '/count'
    }
  },
  price: {
    routeName: hostUrl + 'areditor/resource/book/prices'
  },
  guid: {
    routeName: hostUrl + 'areditor/resource/book/orders/get'
  },
  book: {
    routeName: hostUrl + 'areditor/resource/book/orders'
  },
  countries: {
    routeName: privateHostUrl + 'areditor/account/country'
  },
  provinces: {
    routeName: privateHostUrl + 'areditor/account/register/provinces'
  },
  cities: {
    routeName: privateHostUrl + 'areditor/account/register/cities'
  },
  counties: {
    routeName: privateHostUrl + 'areditor/account/register/areas'
  },
  emailCode: {
    routeName: privateHostUrl + 'areditor/account/register/send'
  },
  register: {
    routeName: privateHostUrl + 'areditor/account/register/save'
  },
  bookInfo: {
    routeName: hostUrl + 'book/detail/audit/'
  },
  document: {
    routeName: hostUrl + 'areditor/system/sendContactEmail'
  },
  uninstall: {
    routeName: hostUrl + 'areditor/system/sendUnloadEmail'
  },
  accountName: {
    routeName: hostUrl + 'areditor/account/account/'
  }

}
